package yja.gzw.app.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import yja.gzw.app.model.bean.Bangdingqieyebean
import yja.gzw.app.model.bean.BianJiziliaoBean
import yja.gzw.app.model.bean.Bianjizhuanqubean
import yja.gzw.app.model.bean.Chengjiedinghdanbean
import yja.gzw.app.model.bean.ChongzhimimaBean
import yja.gzw.app.model.bean.ChuanjiandingdanBean
import yja.gzw.app.model.bean.DianzanBean
import yja.gzw.app.model.bean.Dindanbean
import yja.gzw.app.model.bean.Dongtaixiangqingbean
import yja.gzw.app.model.bean.Fabujingpingshjipingbean
import yja.gzw.app.model.bean.FabuponseData
import yja.gzw.app.model.bean.FabuqinglongBean
import yja.gzw.app.model.bean.FengsiBean
import yja.gzw.app.model.bean.Gongonlei
import yja.gzw.app.model.bean.GuanzhuhequguanBean
import yja.gzw.app.model.bean.Haoyouzhuyebean
import yja.gzw.app.model.bean.HuifuBean
import yja.gzw.app.model.bean.Isbangdingqiyebean
import yja.gzw.app.model.bean.Jingpingshipingbean
import yja.gzw.app.model.bean.LoginBean
import yja.gzw.app.model.bean.Luyingsc
import yja.gzw.app.model.bean.Pinglongbean
import yja.gzw.app.model.bean.Pinglongdianzan
import yja.gzw.app.model.bean.QidngdanBean
import yja.gzw.app.model.bean.Sanzhuanqubean
import yja.gzw.app.model.bean.ShanchudingdanBean
import yja.gzw.app.model.bean.Shengchengchenggong
import yja.gzw.app.model.bean.Shengcshiping
import yja.gzw.app.model.bean.ShoucangBean
import yja.gzw.app.model.bean.TuijianResponse
import yja.gzw.app.model.bean.Tupiansucaibean
import yja.gzw.app.model.bean.Wodebena
import yja.gzw.app.model.bean.Wodeguanzhubean
import yja.gzw.app.model.bean.WodetongjiBean
import yja.gzw.app.model.bean.XiangqingBean
import yja.gzw.app.model.bean.YuerBean
import yja.gzw.app.model.bean.ZanheshoucangBean
import yja.gzw.app.model.bean.ZhifuBean
import yja.gzw.app.model.bean.Zhuanqubean
import yja.gzw.app.model.bean.Zhucebean
import io.reactivex.schedulers.Schedulers
import io.reactivex.android.schedulers.AndroidSchedulers
import okhttp3.MultipartBody
import yja.gzw.app.model.bean.BianjiFabujingpingshjipingbean
import yja.gzw.app.model.bean.BianjidingdanBean
import yja.gzw.app.model.bean.ChengjiafangquxiaodingdanBean
import yja.gzw.app.model.bean.ChuangjiandigdanBean
import yja.gzw.app.model.bean.ChujiahejingjiaBean
import yja.gzw.app.model.bean.FabuabBean
import yja.gzw.app.model.bean.FabuabBean2
import yja.gzw.app.model.bean.Fankuibean
import yja.gzw.app.model.bean.FankuiliebiaoBean
import yja.gzw.app.model.bean.FankuixiangqingBean
import yja.gzw.app.model.bean.GenghuanshoujihaoBean
import yja.gzw.app.model.bean.JvjuedingdanBean
import yja.gzw.app.model.bean.KaipiaoBean
import yja.gzw.app.model.bean.MinxingBean
import yja.gzw.app.model.bean.PingjiaBean
import yja.gzw.app.model.bean.PingjialiebiaoBean
import yja.gzw.app.model.bean.QuxiaoqiangdanBean
import yja.gzw.app.model.bean.SanQuerenBean
import yja.gzw.app.model.bean.ShengqingfapiaoBean
import yja.gzw.app.model.bean.ShengqingxiangqingBean
import yja.gzw.app.model.bean.ShengqingzhuangtaiBean
import yja.gzw.app.model.bean.ShipingbaodingdanBean
import yja.gzw.app.model.bean.TixianBean
import yja.gzw.app.model.bean.Xiangqingbeans
import yja.gzw.app.model.bean.XitoengxiaoxiBean
import yja.gzw.app.model.utils.HttpUtils

class Mainviewmodel :ViewModel(){

    val onlusc= MutableLiveData<Luyingsc>()
    fun onluying(part: MultipartBody.Part){
        HttpUtils.httpwang.apiservsi.Luyishangchuan(part)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onlusc.value=it},{}
            )
    }


    val onzhuceyzm= MutableLiveData<Gongonlei>()

    fun onzhuceyzmwang(map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Zhuceyzm(map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onzhuceyzm.value=it},{}
            )


    }
    val onzhuceqingqiu= MutableLiveData<Zhucebean>()
    fun onzhuceqingqiuwang(map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Zhuceqingqiu(map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onzhuceqingqiu.value=it},{}
            )


    }

    val ondenglu= MutableLiveData<LoginBean>()

    fun ondengluwang(map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Denglu(map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ondenglu.value=it},{}
            )


    }

    val ondenglu2= MutableLiveData<LoginBean>()

    fun ondengluwang2(map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Denglu2(map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ondenglu2.value=it},{}
            )


    }

    val ontuijian= MutableLiveData<TuijianResponse>()

    fun ontuijianwang(token: String,map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Tuijian(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ontuijian.value=it},{}
            )


    }

    val onguanzhu= MutableLiveData<TuijianResponse>()

    fun onguanzhuwang(token:String,map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Guanzhu(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onguanzhu.value=it},{}
            )


    }

    val onfabudt= MutableLiveData<FabuponseData>()

    fun onfabudtwang(token:String,map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Fabudongtai(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfabudt.value=it},{}
            )


    }

    val onwodezhuye= MutableLiveData<Wodebena>()

    fun onwodezhuyewang(token:String,map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Wodezhuye(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onwodezhuye.value=it},{}
            )


    }

    val onzhuanquliebiao=MutableLiveData<Zhuanqubean>()

    fun onzhuanquliebiaowang(token: String, map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Zhuanqu(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onzhuanquliebiao.value=it},{}
            )

    }

    val onsanzhuanquliebiao=MutableLiveData<Sanzhuanqubean>()

    fun onsanzhuanquliebiaowang(token: String, map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Sanzhuanqu(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onsanzhuanquliebiao.value=it},{}
            )

    }

    val onfabudingdandd=MutableLiveData<Dindanbean>()

    fun onfabudingdanddwang(token: String, map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Dindanshow(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfabudingdandd.value=it},{}
            )

    }

    val onfabu2shwo=MutableLiveData<FabuabBean>()

    fun onfabu2shwowang(token: String, map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Fabuallshow(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfabu2shwo.value=it},{}
            )

    }
    val onfabu2shwo2=MutableLiveData<FabuabBean2>()

    fun onfabu2shwowang2(token: String, map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Fabuallshow2(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfabu2shwo2.value=it},{}
            )

    }

    val onchuanjiandingdan=MutableLiveData<ChuanjiandingdanBean>()

    fun onchuanjiandingdanwang(token: String, map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Chuanjiandd(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchuanjiandingdan.value=it},{}
            )

    }

    val onZhifushow=MutableLiveData<ZhifuBean>()

    fun onZhifushowwang(token: String, map: Map<String,String>){
        HttpUtils.httpwang.apiservsi.Zhifu(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onZhifushow.value=it},{}
            )

    }


    val ontupiansucai=MutableLiveData<Tupiansucaibean>()

    fun ontupiansucaiwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Tupiansucai(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ontupiansucai.value=it},{}
            )

    }


    val onshengchengsp=MutableLiveData<Shengcshiping>()

    fun onshengchengspwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Shengchengshiping(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshengchengsp.value=it},{}
            )

    }

    val onshengchengsg=MutableLiveData<Shengchengchenggong>()

    fun onshengchengsgwang(token: String){
        HttpUtils.httpwang.apiservsi.Sehngchengcg(token)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshengchengsg.value=it},{}
            )

    }



    val onchengjie=MutableLiveData<Chengjiedinghdanbean>()

    fun onchengjiewang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Chengjiedindan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchengjie.value=it},{}
            )

    }



    val ondongtaixiangqing=MutableLiveData<Dongtaixiangqingbean>()

    fun ondongtaixiangqingwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Dongtaixiangqing(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ondongtaixiangqing.value=it},{}
            )

    }
    val onhaoyouzhuye=MutableLiveData<Haoyouzhuyebean>()

    fun onhaoyouzhuyewang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Haoyouzhuye(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onhaoyouzhuye.value=it},{}
            )

    }

    val onjingpingshiping=MutableLiveData<Jingpingshipingbean>()

    fun onjingpingshipingwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Jingpingshiping(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onjingpingshiping.value=it},{}
            )

    }

    val onisqiyebangding=MutableLiveData<Isbangdingqiyebean>()

    fun onisqiyebangdingwang(token: String){
        HttpUtils.httpwang.apiservsi.Isqiyebangding(token)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onisqiyebangding.value=it},{}
            )

    }

    val onbangdingyingye=MutableLiveData<Bangdingqieyebean>()

    fun onbangdingyingyewang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Bangdingqiye(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onbangdingyingye.value=it},{}
            )

    }



    val onfabujingpingshiping=MutableLiveData<Fabujingpingshjipingbean>()

    fun onfabujingpingshipingwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Fabujigpingshiping(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfabujingpingshiping.value=it},{}
            )

    }


    val onbianjifabujingpingshiping=MutableLiveData<BianjiFabujingpingshjipingbean>()

    fun onbianjifabujingpingshipingwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.BianjiFabujigpingshiping(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onbianjifabujingpingshiping.value=it},{}
            )

    }


    val onxiangqing=MutableLiveData<XiangqingBean>()

    fun onxiangqingwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Xiangqing(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onxiangqing.value=it},{}
            )

    }
    val onxiangqing2=MutableLiveData<Xiangqingbeans>()

    fun onxiangqingwang2(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Xiangqing2(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onxiangqing2.value=it},{}
            )

    }

    val onqiangdan=MutableLiveData<QidngdanBean>()

    fun onqiangdanwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Qiangdan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onqiangdan.value=it},{}
            )

    }



    val ondianzan=MutableLiveData<DianzanBean>()

    fun ondianzanwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Diazan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ondianzan.value=it},{}
            )

    }

    val ondianzanpl=MutableLiveData<Pinglongdianzan>()

    fun ondianzanplwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Diazanpl(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ondianzanpl.value=it},{}
            )

    }


    val onpinglong=MutableLiveData<Pinglongbean>()

    fun onpinglongwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Pinlun(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onpinglong.value=it},{}
            )

    }

    val onhuifu=MutableLiveData<HuifuBean>()

    fun onhuifuwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Huifu(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onhuifu.value=it},{}
            )

    }

    val onfengsi=MutableLiveData<FengsiBean>()

    fun onfengsiwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Fengsi(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfengsi.value=it},{}
            )

    }


    val onwodeguanzhu=MutableLiveData<Wodeguanzhubean>()

    fun onwodeguanzhuwang(token: String, map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Wdoeguanzhu(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onwodeguanzhu.value=it},{}
            )

    }

    val onwodetongji=MutableLiveData<WodetongjiBean>()

    fun onwodetongjiwang(token: String){
        HttpUtils.httpwang.apiservsi.Wodetongji(token)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onwodetongji.value=it},{}
            )

    }

    val onyuer=MutableLiveData<YuerBean>()

    fun onyuerwang(token: String){
        HttpUtils.httpwang.apiservsi.Yuer(token)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onyuer.value=it},{}
            )

    }

    val onxiugaiziliao=MutableLiveData<BianJiziliaoBean>()

    fun onxiugaiziliaowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Xiugaiziliao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onxiugaiziliao.value=it},{}
            )

    }


    val onshanchudingdan=MutableLiveData<ShanchudingdanBean>()

    fun onshanchudingdanwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Shanchudingdan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshanchudingdan.value=it},{}
            )

    }

    val onbianjizzhuanqu=MutableLiveData<Bianjizhuanqubean>()

    fun onbianjizzhuanquwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Bianjizhuanqu(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onbianjizzhuanqu.value=it},{}
            )
    }

    val onzanheshoucang=MutableLiveData<ZanheshoucangBean>()

    fun onzanheshoucangwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Zanheshoucang(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onzanheshoucang.value=it},{}
            )
    }
    val onfabupinglong=MutableLiveData<FabuqinglongBean>()

    fun onfabupinglongwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Fabupinglong(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfabupinglong.value=it},{}
            )
    }


    val onguanzhuhequguan=MutableLiveData<GuanzhuhequguanBean>()

    fun onguanzhuhequguanwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Guanzhuhequguan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onguanzhuhequguan.value=it},{}
            )
    }

    val onchongzhimima=MutableLiveData<ChongzhimimaBean>()

    fun onchongzhimimawang(map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Chongzhimima(map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchongzhimima.value=it},{}
            )
    }


    val onshoucang=MutableLiveData<ShoucangBean>()

    fun onshoucangwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Shoucang(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshoucang.value=it},{}
            )
    }

    val onshoucangliebiao=MutableLiveData<TuijianResponse>()

    fun onshoucangliebiaowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Shoucangliebiao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshoucangliebiao.value=it},{}
            )
    }

    val ontixian=MutableLiveData<TixianBean>()

    fun ontixianwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Tianxian(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ontixian.value=it},{}
            )
    }
    val onmingxi=MutableLiveData<MinxingBean>()

    fun onmingxiwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Mingxi(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onmingxi.value=it},{}
            )
    }
    val onkaipiao=MutableLiveData<KaipiaoBean>()

    fun onkaipiaowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Kaipiao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onkaipiao.value=it},{}
            )
    }

    //todo 承接方取消订单

    val onchengjiefangquxiaodingdan=MutableLiveData<ChengjiafangquxiaodingdanBean>()

    fun onchengjiefangquxiaodingdanwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Chengjiaquxiao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchengjiefangquxiaodingdan.value=it},{}
            )
    }


    val onchujiahejingjia=MutableLiveData<ChujiahejingjiaBean>()

    fun onchujiahejingjiawang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Chujiahejingjia(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchujiahejingjia.value=it},{}
            )
    }

    //todo 拒绝待确认订单

    val onjvjuedingdan=MutableLiveData<JvjuedingdanBean>()

    fun onjvjuedingdanwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Jvjuedingdan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onjvjuedingdan.value=it},{}
            )
    }


    val onitjvjuedingdan=MutableLiveData<JvjuedingdanBean>()

    fun onitjvjuedingdanwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.ItJvjuedingdan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onitjvjuedingdan.value=it},{}
            )
    }

    //todo 上传订单视频

    val onshangchuandingdanshiping=MutableLiveData<JvjuedingdanBean>()

    fun onshangchuandingdanshipingwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Shangchuandindan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshangchuandingdanshiping.value=it},{}
            )
    }
        //todo 确认收货

    val onquerengshouhuo=MutableLiveData<JvjuedingdanBean>()

    fun onquerengshouhuowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Qurengshouhuo(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onquerengshouhuo.value=it},{}
            )
    }
    //todo 评价

    val onpingjia=MutableLiveData<PingjiaBean>()

    fun onpingjiawang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Pingjia(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onpingjia.value=it},{}
            )
    }

    //todo 创建订单


    val onchuanjiandingdanvip=MutableLiveData<ChuangjiandigdanBean>()

    fun onchuanjiandingdanvipwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Chuanjiandingdan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchuanjiandingdanvip.value=it},{}
            )
    }

    //todo 创建视频包订单
    val onchuangjianshipingbaodingdan=MutableLiveData<ShipingbaodingdanBean>()

    fun onchuangjianshipingbaodingdanwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Chuangjianshipingbaodingdan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchuangjianshipingbaodingdan.value=it},{}
            )
    }

    //todo 跟换手机号
    val ongenhuanshoujihao=MutableLiveData<GenghuanshoujihaoBean>()

    fun ongenhuanshoujihaowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Genghuashoujihao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {ongenhuanshoujihao.value=it},{}
            )
    }

    //todo 评价列表
    val onpingjialeibiao=MutableLiveData<PingjialiebiaoBean>()
    fun onpingjialeibiaowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Pinjialiebiao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onpingjialeibiao.value=it},{}
            )
    }


    //todo 申请状态列表

    val onshengqingliebiao=MutableLiveData<ShengqingzhuangtaiBean>()
    fun onshengqingliebiaowang(token: String){
        HttpUtils.httpwang.apiservsi.Shengqingzhuangtai(token)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshengqingliebiao.value=it},{}
            )
    }
    //todo 申请状态详情
    val onshengqingxiangqing=MutableLiveData<ShengqingxiangqingBean>()
    fun onshengqingxiangqingwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Shengqingxiangqing(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshengqingxiangqing.value=it},{}
            )
    }
    //todo 编辑订单
    val onbianjidingdan=MutableLiveData<BianjidingdanBean>()
    fun onbianjidingdanwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Bianjidindan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onbianjidingdan.value=it},{}
            )
    }


    //todo 反馈意见

    val onfankui=MutableLiveData<Fankuibean>()
    fun onfankuiwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Fankuineirong(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfankui.value=it},{}
            )
    }

    //todo 产品建议

    val onchanpingjianyi=MutableLiveData<Fankuibean>()
    fun onchanpingjianyiwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Chanpingjianyi(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onchanpingjianyi.value=it},{}
            )
    }

        //todo 反馈列表


    val onfankuileibiao=MutableLiveData<FankuiliebiaoBean>()
    fun onfankuileibiaowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Fankuileibiao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfankuileibiao.value=it},{}
            )
    }
    //todo 反馈详情

    val onfankuixiangqing=MutableLiveData<FankuixiangqingBean>()
    fun onfankuixiangqingwang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Fankuixiangqing(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onfankuixiangqing.value=it},{}
            )
    }

    //todo 申请电子发票


    val onshengqingfapiao=MutableLiveData<ShengqingfapiaoBean>()
    fun onshengqingfapiaowang(token: String,map: Map<String, String>){
        HttpUtils.httpwang.apiservsi.Shengqingdianzifapiao(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onshengqingfapiao.value=it},{}
            )
    }

    val onsanquereng=MutableLiveData<SanQuerenBean>()

    fun onsanquerengwang(token: String,map:Map<String,String>){
        HttpUtils.httpwang.apiservsi.Sanqueren(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onsanquereng.value=it},{}
            )
    }

    val onxitongxiaoxi=MutableLiveData<XitoengxiaoxiBean>()
    fun onxitongxiaoxiwang(token: String){
        HttpUtils.httpwang.apiservsi.Xitongxiaoxi(token)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onxitongxiaoxi.value=it},{}
            )
    }
    //todo 取消抢单

    val onquxiaoqiangdan=MutableLiveData<QuxiaoqiangdanBean>()
    fun onquxiaoqiangdanwang(token: String,map:Map<String,String>){
        HttpUtils.httpwang.apiservsi.Quxiaoqiangdan(token,map)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(
                {onquxiaoqiangdan.value=it},{}
            )
    }



}